﻿
// SourceInsight4Dlg.h: 头文件
//

#pragma once
#include "CSourceInsightTool.h"

// CSourceInsight4Dlg 对话框
class CSourceInsight4Dlg : public CDialogEx
{
// 构造
public:
	CSourceInsight4Dlg(CWnd* pParent = nullptr);	// 标准构造函数

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_SOURCEINSIGHT4_DIALOG };
#endif

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持


// 实现
protected:
	HICON m_hIcon;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()

public:
	char m_aCharacterTable[36];
	CString m_sSerial;
	CString m_sName;
	CString m_sOrg;
	CString m_sEmail;
	CString m_sDate;

private:
	void InitCharacterTable();
	void GenerateRandomSerial();
	void GenerateRandomUserName();
	void GenerateRandomOrganization();
	void GenerateRandomEmail();
	void GetDate();

public:
	afx_msg void OnBnClickedReginfo();
};
